package com.wasu.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <p>------------------------------------------------------
 * <p>Copyright (C) 2018 wasu company, All rights reserved.
 * <p>------------------------------------------------------
 * <p>  区域信息与是否ip优先
 * <p>
 * @author Created by 罗长庚
 * @date on 2018/10/17.
 */
public class DicInfo implements Parcelable {
//  "id": 1,
//  "applicationName": "4k-launcher",
//  "dictKey": "ipfirst",
//  "dictValue": "0",
//  "state": "1",
//  "remark": "当 dictValue==1时表示ip优先播放（终端需要过滤掉8M以上的超清码率信息） 当 dictValue==0时表示按照码率就高原则播放",
//  "updateTime": "2018-10-16 14:53:08",
//  "dictCategory": "01#4001",
//  "dictCategoryName": "杭州市区ip优先：否"
    private String id ;
    private String applicationName ;
    private String dictKey ;
    private String dictValue ;
    private String state ;
    private String remark ;
    private String updateTime ;
    private String dictCategory ;
    private String dictCategoryName ;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public String getDictKey() {
        return dictKey;
    }

    public void setDictKey(String dictKey) {
        this.dictKey = dictKey;
    }

    public String getDictValue() {
        return dictValue;
    }

    public void setDictValue(String dictValue) {
        this.dictValue = dictValue;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getDictCategory() {
        return dictCategory;
    }

    public void setDictCategory(String dictCategory) {
        this.dictCategory = dictCategory;
    }

    public String getDictCategoryName() {
        return dictCategoryName;
    }

    public void setDictCategoryName(String dictCategoryName) {
        this.dictCategoryName = dictCategoryName;
    }

    @Override
    public String toString() {
        return "DicInfo{" +
                "id='" + id + '\'' +
                ", applicationName='" + applicationName + '\'' +
                ", dictKey='" + dictKey + '\'' +
                ", dictValue='" + dictValue + '\'' +
                ", state='" + state + '\'' +
                ", remark='" + remark + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", dictCategory='" + dictCategory + '\'' +
                ", dictCategoryName='" + dictCategoryName + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.applicationName);
        dest.writeString(this.dictKey);
        dest.writeString(this.dictValue);
        dest.writeString(this.state);
        dest.writeString(this.remark);
        dest.writeString(this.updateTime);
        dest.writeString(this.dictCategory);
        dest.writeString(this.dictCategoryName);
    }

    public DicInfo() {
    }

    protected DicInfo(Parcel in) {
        this.id = in.readString();
        this.applicationName = in.readString();
        this.dictKey = in.readString();
        this.dictValue = in.readString();
        this.state = in.readString();
        this.remark = in.readString();
        this.updateTime = in.readString();
        this.dictCategory = in.readString();
        this.dictCategoryName = in.readString();
    }

    public static final Creator<DicInfo> CREATOR = new Creator<DicInfo>() {
        @Override
        public DicInfo createFromParcel(Parcel source) {
            return new DicInfo(source);
        }

        @Override
        public DicInfo[] newArray(int size) {
            return new DicInfo[size];
        }
    };
}
